﻿namespace WMS6.Web.OrderMgtServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DataContract(Name="SalesOrderInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class SalesOrderInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private DateTime ActualShipDateField;
        [OptionalField]
        private string BAddressField;
        [OptionalField]
        private string BCityField;
        [OptionalField]
        private string BCompanyField;
        [OptionalField]
        private string BContact1Field;
        [OptionalField]
        private string BContact2Field;
        [OptionalField]
        private string BCountryCodeField;
        [OptionalField]
        private string BCountryField;
        [OptionalField]
        private string BEmail1Field;
        [OptionalField]
        private string BEmail2Field;
        [OptionalField]
        private string BFax1Field;
        [OptionalField]
        private string BFax2Field;
        [OptionalField]
        private string BillToIDField;
        [OptionalField]
        private string BPhone1Field;
        [OptionalField]
        private string BPhone2Field;
        [OptionalField]
        private string BStateField;
        [OptionalField]
        private string BVatField;
        [OptionalField]
        private string BZipField;
        [OptionalField]
        private string CAddressField;
        [OptionalField]
        private string CarrierAddressField;
        [OptionalField]
        private string CarrierCityField;
        [OptionalField]
        private string CarrierCountryCodeField;
        [OptionalField]
        private string CarrierCountryField;
        [OptionalField]
        private string CarrierIDField;
        [OptionalField]
        private string CarrierNameField;
        [OptionalField]
        private string CarrierPhoneField;
        [OptionalField]
        private string CarrierProvField;
        [OptionalField]
        private string CarrierZipField;
        [OptionalField]
        private string CCityField;
        [OptionalField]
        private string CCompanyField;
        [OptionalField]
        private string CContact1Field;
        [OptionalField]
        private string CContact2Field;
        [OptionalField]
        private string CCountryCodeField;
        [OptionalField]
        private string CCountryField;
        [OptionalField]
        private string CEmail1Field;
        [OptionalField]
        private string CEmail2Field;
        [OptionalField]
        private string CFax1Field;
        [OptionalField]
        private string CFax2Field;
        [OptionalField]
        private string ConsigneeIDField;
        [OptionalField]
        private decimal ContainerQtyField;
        [OptionalField]
        private string ContainerTypeField;
        [OptionalField]
        private string CountryDestinationField;
        [OptionalField]
        private string CountryOfOriginField;
        [OptionalField]
        private string CPhone1Field;
        [OptionalField]
        private string CPhone2Field;
        [OptionalField]
        private string CProvField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private string CVatField;
        [OptionalField]
        private string CZipField;
        [OptionalField]
        private DateTime DeliveryDate2Field;
        [OptionalField]
        private DateTime DeliveryDateField;
        [OptionalField]
        private string DeliveryPlaceField;
        [OptionalField]
        private DateTime DepartureDateField;
        [OptionalField]
        private string DischargePlaceField;
        [OptionalField]
        private string DoorField;
        [OptionalField]
        private string DriverNameField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string ExternalLoadIDField;
        [OptionalField]
        private string ExternOrderIDField;
        [OptionalField]
        private string IncoTermsField;
        [OptionalField]
        private string IsActiveField;
        [OptionalField]
        private string LoadIDField;
        [OptionalField]
        private decimal OpenQtyField;
        [OptionalField]
        private DateTime OrderDateField;
        [OptionalField]
        private string OrderIDField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private string PaymentTermField;
        [OptionalField]
        private string PriorityField;
        [OptionalField]
        private string ProNumberField;
        [OptionalField]
        private string Remark2Field;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private DateTime RequestedDeliveryDateField;
        [OptionalField]
        private string RouteField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private List<SalesOrderDetailInfo> SalesOrderDetailInfosField;
        [OptionalField]
        private string StageField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private string StopField;
        [OptionalField]
        private string SubmittedByField;
        [OptionalField]
        private DateTime SubmittedDateField;
        [OptionalField]
        private string TrailerNumberField;
        [OptionalField]
        private string TrailerOwnerField;
        [OptionalField]
        private string TransportationModeField;
        [OptionalField]
        private string TransportationServiceField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string TypeField;
        [OptionalField]
        private string Udf10Field;
        [OptionalField]
        private string Udf1Field;
        [OptionalField]
        private string Udf2Field;
        [OptionalField]
        private string Udf3Field;
        [OptionalField]
        private string Udf4Field;
        [OptionalField]
        private string Udf5Field;
        [OptionalField]
        private string Udf6Field;
        [OptionalField]
        private string Udf7Field;
        [OptionalField]
        private string Udf8Field;
        [OptionalField]
        private string Udf9Field;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public DateTime ActualShipDate
        {
            get
            {
                return this.ActualShipDateField;
            }
            set
            {
                if (!this.ActualShipDateField.Equals(value))
                {
                    this.ActualShipDateField = value;
                    this.RaisePropertyChanged("ActualShipDate");
                }
            }
        }

        [DataMember]
        public string BAddress
        {
            get
            {
                return this.BAddressField;
            }
            set
            {
                if (!object.ReferenceEquals(this.BAddressField, value))
                {
                    this.BAddressField = value;
                    this.RaisePropertyChanged("BAddress");
                }
            }
        }

        [DataMember]
        public string BCity
        {
            get
            {
                return this.BCityField;
            }
            set
            {
                if (!object.ReferenceEquals(this.BCityField, value))
                {
                    this.BCityField = value;
                    this.RaisePropertyChanged("BCity");
                }
            }
        }

        [DataMember]
        public string BCompany
        {
            get
            {
                return this.BCompanyField;
            }
            set
            {
                if (!object.ReferenceEquals(this.BCompanyField, value))
                {
                    this.BCompanyField = value;
                    this.RaisePropertyChanged("BCompany");
                }
            }
        }

        [DataMember]
        public string BContact1
        {
            get
            {
                return this.BContact1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.BContact1Field, value))
                {
                    this.BContact1Field = value;
                    this.RaisePropertyChanged("BContact1");
                }
            }
        }

        [DataMember]
        public string BContact2
        {
            get
            {
                return this.BContact2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.BContact2Field, value))
                {
                    this.BContact2Field = value;
                    this.RaisePropertyChanged("BContact2");
                }
            }
        }

        [DataMember]
        public string BCountry
        {
            get
            {
                return this.BCountryField;
            }
            set
            {
                if (!object.ReferenceEquals(this.BCountryField, value))
                {
                    this.BCountryField = value;
                    this.RaisePropertyChanged("BCountry");
                }
            }
        }

        [DataMember]
        public string BCountryCode
        {
            get
            {
                return this.BCountryCodeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.BCountryCodeField, value))
                {
                    this.BCountryCodeField = value;
                    this.RaisePropertyChanged("BCountryCode");
                }
            }
        }

        [DataMember]
        public string BEmail1
        {
            get
            {
                return this.BEmail1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.BEmail1Field, value))
                {
                    this.BEmail1Field = value;
                    this.RaisePropertyChanged("BEmail1");
                }
            }
        }

        [DataMember]
        public string BEmail2
        {
            get
            {
                return this.BEmail2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.BEmail2Field, value))
                {
                    this.BEmail2Field = value;
                    this.RaisePropertyChanged("BEmail2");
                }
            }
        }

        [DataMember]
        public string BFax1
        {
            get
            {
                return this.BFax1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.BFax1Field, value))
                {
                    this.BFax1Field = value;
                    this.RaisePropertyChanged("BFax1");
                }
            }
        }

        [DataMember]
        public string BFax2
        {
            get
            {
                return this.BFax2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.BFax2Field, value))
                {
                    this.BFax2Field = value;
                    this.RaisePropertyChanged("BFax2");
                }
            }
        }

        [DataMember]
        public string BillToID
        {
            get
            {
                return this.BillToIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.BillToIDField, value))
                {
                    this.BillToIDField = value;
                    this.RaisePropertyChanged("BillToID");
                }
            }
        }

        [DataMember]
        public string BPhone1
        {
            get
            {
                return this.BPhone1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.BPhone1Field, value))
                {
                    this.BPhone1Field = value;
                    this.RaisePropertyChanged("BPhone1");
                }
            }
        }

        [DataMember]
        public string BPhone2
        {
            get
            {
                return this.BPhone2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.BPhone2Field, value))
                {
                    this.BPhone2Field = value;
                    this.RaisePropertyChanged("BPhone2");
                }
            }
        }

        [DataMember]
        public string BState
        {
            get
            {
                return this.BStateField;
            }
            set
            {
                if (!object.ReferenceEquals(this.BStateField, value))
                {
                    this.BStateField = value;
                    this.RaisePropertyChanged("BState");
                }
            }
        }

        [DataMember]
        public string BVat
        {
            get
            {
                return this.BVatField;
            }
            set
            {
                if (!object.ReferenceEquals(this.BVatField, value))
                {
                    this.BVatField = value;
                    this.RaisePropertyChanged("BVat");
                }
            }
        }

        [DataMember]
        public string BZip
        {
            get
            {
                return this.BZipField;
            }
            set
            {
                if (!object.ReferenceEquals(this.BZipField, value))
                {
                    this.BZipField = value;
                    this.RaisePropertyChanged("BZip");
                }
            }
        }

        [DataMember]
        public string CAddress
        {
            get
            {
                return this.CAddressField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CAddressField, value))
                {
                    this.CAddressField = value;
                    this.RaisePropertyChanged("CAddress");
                }
            }
        }

        [DataMember]
        public string CarrierAddress
        {
            get
            {
                return this.CarrierAddressField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierAddressField, value))
                {
                    this.CarrierAddressField = value;
                    this.RaisePropertyChanged("CarrierAddress");
                }
            }
        }

        [DataMember]
        public string CarrierCity
        {
            get
            {
                return this.CarrierCityField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierCityField, value))
                {
                    this.CarrierCityField = value;
                    this.RaisePropertyChanged("CarrierCity");
                }
            }
        }

        [DataMember]
        public string CarrierCountry
        {
            get
            {
                return this.CarrierCountryField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierCountryField, value))
                {
                    this.CarrierCountryField = value;
                    this.RaisePropertyChanged("CarrierCountry");
                }
            }
        }

        [DataMember]
        public string CarrierCountryCode
        {
            get
            {
                return this.CarrierCountryCodeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierCountryCodeField, value))
                {
                    this.CarrierCountryCodeField = value;
                    this.RaisePropertyChanged("CarrierCountryCode");
                }
            }
        }

        [DataMember]
        public string CarrierID
        {
            get
            {
                return this.CarrierIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierIDField, value))
                {
                    this.CarrierIDField = value;
                    this.RaisePropertyChanged("CarrierID");
                }
            }
        }

        [DataMember]
        public string CarrierName
        {
            get
            {
                return this.CarrierNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierNameField, value))
                {
                    this.CarrierNameField = value;
                    this.RaisePropertyChanged("CarrierName");
                }
            }
        }

        [DataMember]
        public string CarrierPhone
        {
            get
            {
                return this.CarrierPhoneField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierPhoneField, value))
                {
                    this.CarrierPhoneField = value;
                    this.RaisePropertyChanged("CarrierPhone");
                }
            }
        }

        [DataMember]
        public string CarrierProv
        {
            get
            {
                return this.CarrierProvField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierProvField, value))
                {
                    this.CarrierProvField = value;
                    this.RaisePropertyChanged("CarrierProv");
                }
            }
        }

        [DataMember]
        public string CarrierZip
        {
            get
            {
                return this.CarrierZipField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierZipField, value))
                {
                    this.CarrierZipField = value;
                    this.RaisePropertyChanged("CarrierZip");
                }
            }
        }

        [DataMember]
        public string CCity
        {
            get
            {
                return this.CCityField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CCityField, value))
                {
                    this.CCityField = value;
                    this.RaisePropertyChanged("CCity");
                }
            }
        }

        [DataMember]
        public string CCompany
        {
            get
            {
                return this.CCompanyField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CCompanyField, value))
                {
                    this.CCompanyField = value;
                    this.RaisePropertyChanged("CCompany");
                }
            }
        }

        [DataMember]
        public string CContact1
        {
            get
            {
                return this.CContact1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.CContact1Field, value))
                {
                    this.CContact1Field = value;
                    this.RaisePropertyChanged("CContact1");
                }
            }
        }

        [DataMember]
        public string CContact2
        {
            get
            {
                return this.CContact2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.CContact2Field, value))
                {
                    this.CContact2Field = value;
                    this.RaisePropertyChanged("CContact2");
                }
            }
        }

        [DataMember]
        public string CCountry
        {
            get
            {
                return this.CCountryField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CCountryField, value))
                {
                    this.CCountryField = value;
                    this.RaisePropertyChanged("CCountry");
                }
            }
        }

        [DataMember]
        public string CCountryCode
        {
            get
            {
                return this.CCountryCodeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CCountryCodeField, value))
                {
                    this.CCountryCodeField = value;
                    this.RaisePropertyChanged("CCountryCode");
                }
            }
        }

        [DataMember]
        public string CEmail1
        {
            get
            {
                return this.CEmail1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.CEmail1Field, value))
                {
                    this.CEmail1Field = value;
                    this.RaisePropertyChanged("CEmail1");
                }
            }
        }

        [DataMember]
        public string CEmail2
        {
            get
            {
                return this.CEmail2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.CEmail2Field, value))
                {
                    this.CEmail2Field = value;
                    this.RaisePropertyChanged("CEmail2");
                }
            }
        }

        [DataMember]
        public string CFax1
        {
            get
            {
                return this.CFax1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.CFax1Field, value))
                {
                    this.CFax1Field = value;
                    this.RaisePropertyChanged("CFax1");
                }
            }
        }

        [DataMember]
        public string CFax2
        {
            get
            {
                return this.CFax2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.CFax2Field, value))
                {
                    this.CFax2Field = value;
                    this.RaisePropertyChanged("CFax2");
                }
            }
        }

        [DataMember]
        public string ConsigneeID
        {
            get
            {
                return this.ConsigneeIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ConsigneeIDField, value))
                {
                    this.ConsigneeIDField = value;
                    this.RaisePropertyChanged("ConsigneeID");
                }
            }
        }

        [DataMember]
        public decimal ContainerQty
        {
            get
            {
                return this.ContainerQtyField;
            }
            set
            {
                if (!this.ContainerQtyField.Equals(value))
                {
                    this.ContainerQtyField = value;
                    this.RaisePropertyChanged("ContainerQty");
                }
            }
        }

        [DataMember]
        public string ContainerType
        {
            get
            {
                return this.ContainerTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ContainerTypeField, value))
                {
                    this.ContainerTypeField = value;
                    this.RaisePropertyChanged("ContainerType");
                }
            }
        }

        [DataMember]
        public string CountryDestination
        {
            get
            {
                return this.CountryDestinationField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CountryDestinationField, value))
                {
                    this.CountryDestinationField = value;
                    this.RaisePropertyChanged("CountryDestination");
                }
            }
        }

        [DataMember]
        public string CountryOfOrigin
        {
            get
            {
                return this.CountryOfOriginField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CountryOfOriginField, value))
                {
                    this.CountryOfOriginField = value;
                    this.RaisePropertyChanged("CountryOfOrigin");
                }
            }
        }

        [DataMember]
        public string CPhone1
        {
            get
            {
                return this.CPhone1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.CPhone1Field, value))
                {
                    this.CPhone1Field = value;
                    this.RaisePropertyChanged("CPhone1");
                }
            }
        }

        [DataMember]
        public string CPhone2
        {
            get
            {
                return this.CPhone2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.CPhone2Field, value))
                {
                    this.CPhone2Field = value;
                    this.RaisePropertyChanged("CPhone2");
                }
            }
        }

        [DataMember]
        public string CProv
        {
            get
            {
                return this.CProvField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CProvField, value))
                {
                    this.CProvField = value;
                    this.RaisePropertyChanged("CProv");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string CVat
        {
            get
            {
                return this.CVatField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CVatField, value))
                {
                    this.CVatField = value;
                    this.RaisePropertyChanged("CVat");
                }
            }
        }

        [DataMember]
        public string CZip
        {
            get
            {
                return this.CZipField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CZipField, value))
                {
                    this.CZipField = value;
                    this.RaisePropertyChanged("CZip");
                }
            }
        }

        [DataMember]
        public DateTime DeliveryDate
        {
            get
            {
                return this.DeliveryDateField;
            }
            set
            {
                if (!this.DeliveryDateField.Equals(value))
                {
                    this.DeliveryDateField = value;
                    this.RaisePropertyChanged("DeliveryDate");
                }
            }
        }

        [DataMember]
        public DateTime DeliveryDate2
        {
            get
            {
                return this.DeliveryDate2Field;
            }
            set
            {
                if (!this.DeliveryDate2Field.Equals(value))
                {
                    this.DeliveryDate2Field = value;
                    this.RaisePropertyChanged("DeliveryDate2");
                }
            }
        }

        [DataMember]
        public string DeliveryPlace
        {
            get
            {
                return this.DeliveryPlaceField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DeliveryPlaceField, value))
                {
                    this.DeliveryPlaceField = value;
                    this.RaisePropertyChanged("DeliveryPlace");
                }
            }
        }

        [DataMember]
        public DateTime DepartureDate
        {
            get
            {
                return this.DepartureDateField;
            }
            set
            {
                if (!this.DepartureDateField.Equals(value))
                {
                    this.DepartureDateField = value;
                    this.RaisePropertyChanged("DepartureDate");
                }
            }
        }

        [DataMember]
        public string DischargePlace
        {
            get
            {
                return this.DischargePlaceField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DischargePlaceField, value))
                {
                    this.DischargePlaceField = value;
                    this.RaisePropertyChanged("DischargePlace");
                }
            }
        }

        [DataMember]
        public string Door
        {
            get
            {
                return this.DoorField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DoorField, value))
                {
                    this.DoorField = value;
                    this.RaisePropertyChanged("Door");
                }
            }
        }

        [DataMember]
        public string DriverName
        {
            get
            {
                return this.DriverNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DriverNameField, value))
                {
                    this.DriverNameField = value;
                    this.RaisePropertyChanged("DriverName");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string ExternalLoadID
        {
            get
            {
                return this.ExternalLoadIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternalLoadIDField, value))
                {
                    this.ExternalLoadIDField = value;
                    this.RaisePropertyChanged("ExternalLoadID");
                }
            }
        }

        [DataMember]
        public string ExternOrderID
        {
            get
            {
                return this.ExternOrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternOrderIDField, value))
                {
                    this.ExternOrderIDField = value;
                    this.RaisePropertyChanged("ExternOrderID");
                }
            }
        }

        [DataMember]
        public string IncoTerms
        {
            get
            {
                return this.IncoTermsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IncoTermsField, value))
                {
                    this.IncoTermsField = value;
                    this.RaisePropertyChanged("IncoTerms");
                }
            }
        }

        [DataMember]
        public string IsActive
        {
            get
            {
                return this.IsActiveField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsActiveField, value))
                {
                    this.IsActiveField = value;
                    this.RaisePropertyChanged("IsActive");
                }
            }
        }

        [DataMember]
        public string LoadID
        {
            get
            {
                return this.LoadIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoadIDField, value))
                {
                    this.LoadIDField = value;
                    this.RaisePropertyChanged("LoadID");
                }
            }
        }

        [DataMember]
        public decimal OpenQty
        {
            get
            {
                return this.OpenQtyField;
            }
            set
            {
                if (!this.OpenQtyField.Equals(value))
                {
                    this.OpenQtyField = value;
                    this.RaisePropertyChanged("OpenQty");
                }
            }
        }

        [DataMember]
        public DateTime OrderDate
        {
            get
            {
                return this.OrderDateField;
            }
            set
            {
                if (!this.OrderDateField.Equals(value))
                {
                    this.OrderDateField = value;
                    this.RaisePropertyChanged("OrderDate");
                }
            }
        }

        [DataMember]
        public string OrderID
        {
            get
            {
                return this.OrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OrderIDField, value))
                {
                    this.OrderIDField = value;
                    this.RaisePropertyChanged("OrderID");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public string PaymentTerm
        {
            get
            {
                return this.PaymentTermField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PaymentTermField, value))
                {
                    this.PaymentTermField = value;
                    this.RaisePropertyChanged("PaymentTerm");
                }
            }
        }

        [DataMember]
        public string Priority
        {
            get
            {
                return this.PriorityField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PriorityField, value))
                {
                    this.PriorityField = value;
                    this.RaisePropertyChanged("Priority");
                }
            }
        }

        [DataMember]
        public string ProNumber
        {
            get
            {
                return this.ProNumberField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ProNumberField, value))
                {
                    this.ProNumberField = value;
                    this.RaisePropertyChanged("ProNumber");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public string Remark2
        {
            get
            {
                return this.Remark2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Remark2Field, value))
                {
                    this.Remark2Field = value;
                    this.RaisePropertyChanged("Remark2");
                }
            }
        }

        [DataMember]
        public DateTime RequestedDeliveryDate
        {
            get
            {
                return this.RequestedDeliveryDateField;
            }
            set
            {
                if (!this.RequestedDeliveryDateField.Equals(value))
                {
                    this.RequestedDeliveryDateField = value;
                    this.RaisePropertyChanged("RequestedDeliveryDate");
                }
            }
        }

        [DataMember]
        public string Route
        {
            get
            {
                return this.RouteField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RouteField, value))
                {
                    this.RouteField = value;
                    this.RaisePropertyChanged("Route");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public List<SalesOrderDetailInfo> SalesOrderDetailInfos
        {
            get
            {
                return this.SalesOrderDetailInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SalesOrderDetailInfosField, value))
                {
                    this.SalesOrderDetailInfosField = value;
                    this.RaisePropertyChanged("SalesOrderDetailInfos");
                }
            }
        }

        [DataMember]
        public string Stage
        {
            get
            {
                return this.StageField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StageField, value))
                {
                    this.StageField = value;
                    this.RaisePropertyChanged("Stage");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public string Stop
        {
            get
            {
                return this.StopField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StopField, value))
                {
                    this.StopField = value;
                    this.RaisePropertyChanged("Stop");
                }
            }
        }

        [DataMember]
        public string SubmittedBy
        {
            get
            {
                return this.SubmittedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SubmittedByField, value))
                {
                    this.SubmittedByField = value;
                    this.RaisePropertyChanged("SubmittedBy");
                }
            }
        }

        [DataMember]
        public DateTime SubmittedDate
        {
            get
            {
                return this.SubmittedDateField;
            }
            set
            {
                if (!this.SubmittedDateField.Equals(value))
                {
                    this.SubmittedDateField = value;
                    this.RaisePropertyChanged("SubmittedDate");
                }
            }
        }

        [DataMember]
        public string TrailerNumber
        {
            get
            {
                return this.TrailerNumberField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TrailerNumberField, value))
                {
                    this.TrailerNumberField = value;
                    this.RaisePropertyChanged("TrailerNumber");
                }
            }
        }

        [DataMember]
        public string TrailerOwner
        {
            get
            {
                return this.TrailerOwnerField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TrailerOwnerField, value))
                {
                    this.TrailerOwnerField = value;
                    this.RaisePropertyChanged("TrailerOwner");
                }
            }
        }

        [DataMember]
        public string TransportationMode
        {
            get
            {
                return this.TransportationModeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TransportationModeField, value))
                {
                    this.TransportationModeField = value;
                    this.RaisePropertyChanged("TransportationMode");
                }
            }
        }

        [DataMember]
        public string TransportationService
        {
            get
            {
                return this.TransportationServiceField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TransportationServiceField, value))
                {
                    this.TransportationServiceField = value;
                    this.RaisePropertyChanged("TransportationService");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string Type
        {
            get
            {
                return this.TypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TypeField, value))
                {
                    this.TypeField = value;
                    this.RaisePropertyChanged("Type");
                }
            }
        }

        [DataMember]
        public string Udf1
        {
            get
            {
                return this.Udf1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf1Field, value))
                {
                    this.Udf1Field = value;
                    this.RaisePropertyChanged("Udf1");
                }
            }
        }

        [DataMember]
        public string Udf10
        {
            get
            {
                return this.Udf10Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf10Field, value))
                {
                    this.Udf10Field = value;
                    this.RaisePropertyChanged("Udf10");
                }
            }
        }

        [DataMember]
        public string Udf2
        {
            get
            {
                return this.Udf2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf2Field, value))
                {
                    this.Udf2Field = value;
                    this.RaisePropertyChanged("Udf2");
                }
            }
        }

        [DataMember]
        public string Udf3
        {
            get
            {
                return this.Udf3Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf3Field, value))
                {
                    this.Udf3Field = value;
                    this.RaisePropertyChanged("Udf3");
                }
            }
        }

        [DataMember]
        public string Udf4
        {
            get
            {
                return this.Udf4Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf4Field, value))
                {
                    this.Udf4Field = value;
                    this.RaisePropertyChanged("Udf4");
                }
            }
        }

        [DataMember]
        public string Udf5
        {
            get
            {
                return this.Udf5Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf5Field, value))
                {
                    this.Udf5Field = value;
                    this.RaisePropertyChanged("Udf5");
                }
            }
        }

        [DataMember]
        public string Udf6
        {
            get
            {
                return this.Udf6Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf6Field, value))
                {
                    this.Udf6Field = value;
                    this.RaisePropertyChanged("Udf6");
                }
            }
        }

        [DataMember]
        public string Udf7
        {
            get
            {
                return this.Udf7Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf7Field, value))
                {
                    this.Udf7Field = value;
                    this.RaisePropertyChanged("Udf7");
                }
            }
        }

        [DataMember]
        public string Udf8
        {
            get
            {
                return this.Udf8Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf8Field, value))
                {
                    this.Udf8Field = value;
                    this.RaisePropertyChanged("Udf8");
                }
            }
        }

        [DataMember]
        public string Udf9
        {
            get
            {
                return this.Udf9Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf9Field, value))
                {
                    this.Udf9Field = value;
                    this.RaisePropertyChanged("Udf9");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

